package com.kunya.product.dao.specification;

import com.kunya.product.po.KindAttribute;
import com.kunya.product.vo.SpecificationKindVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface KindAttributeMapper {
    int deleteByPrimaryKey(@Param("kindAttrId") Long kindAttrId,@Param("table_prefix") String table_prefix);

    int insert(@Param("record") KindAttribute record,@Param("table_prefix") String table_prefix);

    int insertSelective(@Param("record") KindAttribute record,@Param("table_prefix") String table_prefix);

    KindAttribute selectByPrimaryKey(@Param("kindAttrId") Long kindAttrId,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKeySelective(@Param("record") KindAttribute record,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKey(@Param("record") KindAttribute record,@Param("table_prefix") String table_prefix);

    /**
     * @author zp
     * @Description: 根据kindIds查询 列表
     * @param
     * @date 2018/7/5 13:37
     */
    List<KindAttribute> selectByKindIds(@Param("kindIds") List<Long> kindIds,@Param("table_prefix") String table_prefix);

    /**
     * 添加商品属性时使用vo插入新的记录
     * @author suimg
     * @date 2018/7/21 15:33
     */
    int insertkindAttrByMiddle(@Param("record")SpecificationKindVo specificationKindVo, @Param("table_prefix") String table_prefix);
}